package com.yuanqi.service;

import com.yuanqi.domain.CollectionRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface CollectionRecordService {
    
    Page<CollectionRecord> getCollectionRecords(Pageable pageable, String collectionCode, String customerName, String collectionDate);
    
    CollectionRecord getCollectionRecordById(Integer id);
    
    CollectionRecord getCollectionRecordByCollectionCode(String collectionCode);
    
    CollectionRecord createCollectionRecord(CollectionRecord collectionRecord);
    
    CollectionRecord updateCollectionRecord(CollectionRecord collectionRecord);
    
    void deleteCollectionRecord(Integer id);
    
    String generateCollectionCode();
    
    Map<String, Object> getCollectionStats();
    
    List<CollectionRecord> getCollectionRecordsByConditions(String collectionCode, String customerName, String collectionDate);
}




